
<?php
$dbhost = 'localhost';
$dbuser = 'shanno48_beer';
$dbpass = '812lambert';
$dbname = 'shanno48_beerTicks';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting');

mysql_select_db($dbname, $conn);

$result = mysql_query("SELECT * FROM beers");

if (!$result) {
  echo "An error occured.";
  exit;
}

while($row = mysql_fetch_array($result))
  {
  echo $row['beerName'];
  echo "<br />";
  }
?>

